package com.hbxx.lotteryapp.controller;


import com.hbxx.lotteryapp.commons.ApiIdempotent;
import com.hbxx.lotteryapp.commons.Result;
import com.hbxx.lotteryapp.service.ICashRecordService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  提现记录前端控制器
 * </p>
 *
 * @author Tonny
 * @since 2022-06-07
 */
@RestController
@RequestMapping("/cashRecord")
public class CashRecordController {

    @Resource
    private ICashRecordService cashRecordService;

    @ApiIdempotent
    @GetMapping("/queryPage")
    public Result querypage(Integer pageNum, Integer pageSize, HttpServletRequest request){
        return cashRecordService.queryPage(pageNum,pageSize,request);
    }
}

